package com.bytedance.frameworks.core.thread;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadPoolExecutor;

public class c {
    private static volatile c a;
    private static volatile ThreadPoolExecutor b;
    private static volatile ThreadPoolExecutor c;
    private static volatile ScheduledExecutorService d;

    static {
        new ConcurrentHashMap();
        new ConcurrentHashMap();
    }

    private c() {
        b = g.a();
        c = g.b();
        d = g.c();
    }

    public static c a() {
        if (a == null) {
            Class v1 = c.class;
            synchronized (v1) {
                if (a == null) {
                    a = new c();
                }
            }
        }

        return a;
    }

    public static void a(e arg2) {
        if (arg2 == null) {
            throw new IllegalArgumentException("param is not be null");
        }

        if (b != null) {
            b.execute(arg2);
        }
    }

    public static void b(e arg2) {
        if (arg2 == null) {
            throw new IllegalArgumentException("param is not be null");
        }

        if (c != null) {
            c.execute(((Runnable) arg2));
        }
    }
}

